package cn.concurrence.cas;

import cn.concurrence.dto.UserDTO;

/**
 * @author summit
 * @since 2022/4/21 14:26
 */
public class CloneTest {

	public static void main(String[] args) {
		UserDTO userDTO = new UserDTO();
		userDTO.setId(1);

		UserDTO userDTO1 = userDTO.clone();

		userDTO1.setName("summit");
		System.out.println(userDTO1);
		System.out.println(userDTO);
	}
}
